import request from '@/utils/request'

// 查询索引维护列表
export function list索引维护(query) {
  return request({
    url: '/lc/datamodel/index/list',
    method: 'get',
    params: query
  })
}

// 查询索引维护详细
export function get索引维护(id) {
  return request({
    url: '/datamodel/index/' + id,
    method: 'get'
  })
}

// 新增索引维护
export function add索引维护(data) {
  return request({
    url: '/datamodel/index',
    method: 'post',
    data: data
  })
}

// 修改索引维护
export function update索引维护(data) {
  return request({
    url: '/datamodel/index',
    method: 'put',
    data: data
  })
}

// 删除索引维护
export function del索引维护(id) {
  return request({
    url: '/datamodel/index/' + id,
    method: 'delete'
  })
}
